<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>  
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>阅览室-南充唯一一家本土化兼职人才招聘网站</title>
<link href="<%=basePath %>web/index_css.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>web/list_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="head"><iframe src="<%=basePath%>web/head.html" width="1000px"  height="152px"  frameborder="0" scrolling="no" ></iframe></div>
<div class="main">
  <div class="seat">
  <span class="span_1"><a href="<%=basePath %>index.html">返回首页</a></span>
  <strong>当前位置：</strong><span class="a_1"><a href="<%=basePath %>index.html">首页</a>><a href="<%=basePath %>reading.html">阅览室</a></span>
  </div>
  <div class="left">
     <div class="list_biaoti"><h4>南充兼职网 - 在线阅览室</h4></div>
      <div  class="list_list" >
           <ul>
                <li>
                 <table>
                  <tr>
                   <td width="60">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;分类</td>
                   <td width="380">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;标题[作者]</td>
                   <td width="120">发布时间</td>
                   <td>点击量</td>
                  </tr>
                 </table>
                 </li>
				<c:if test="${!empty pm.datas}">
				<c:forEach items="${pm.datas}" var="article">
				<li><a href="<%=basePath %>article/${article.aid }.html" target="_blank"><span>&nbsp;&nbsp;&nbsp;<fmt:formatDate value="${article.atime}" pattern="yyyy-MM-dd HH:mm"/> 
				     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${article.scannum }次
				    </span><font color="#FD7D01">[${article.cname }]</font>
				       <c:choose> 
					    <c:when test="${fn:length(article.title) > 15}"> 
					     <c:out value="${fn:substring(article.title, 0, 15)}..." />
					    </c:when> 
					    <c:otherwise> 
					     <c:out value="${article.title}" /> 
					    </c:otherwise> 
				       </c:choose>
					   [<c:choose> 
					    <c:when test="${fn:length(article.author) > 10}"> 
					     <c:out value="${fn:substring(article.author, 0, 10)}..." />
					    </c:when> 
					    <c:otherwise> 
					     <c:out value="${article.author}" /> 
					    </c:otherwise> 
				       </c:choose>] 
				          <c:if test="${10 <= article.scannum}">
				            <img src="<%=basePath%>web/images_xu/hot.gif" width="23"  alt="找工作,到南充兼职网"  height="9"/>
				          </c:if>
					   &nbsp;&nbsp;&nbsp;&nbsp;
					  </a>
                 </li>
				 </c:forEach>
				</c:if>
				<c:if test="${empty pm.datas}">
				   <li>
						没有找到相应的记录
				   </li>
				</c:if>				
			</ul> 
            </div>
       <div class="page_no">
         <pg:pager url="${basePath}reading.html" items="${pm.total}"
			export="currentPageNumber=pageNumber" maxPageItems="15"
			maxIndexPages="15">
			<pg:first>
				<a href="${pageUrl}">首页</a>
			</pg:first>  
                                     [第${currentPageNumber}页]/[共${pm.total}条记录]
                                    <pg:prev>
				<a href="${pageUrl }">上一页</a>
			</pg:prev>
			<pg:pages>
				<c:choose>
					<c:when test="${currentPageNumber eq pageNumber}">
						<font color="red">${pageNumber }</font>
					</c:when>
					<c:otherwise>
						<a href="${pageUrl }">${pageNumber }</a>
					</c:otherwise>
				</c:choose>
			</pg:pages>
			<pg:next>
				<a href="${pageUrl }">下一页</a>
			</pg:next>
			<pg:last>
				<a href="${pageUrl }">尾页</a>
			</pg:last>
	    </pg:pager>
       </div>
  </div>
    <!-- ------------主体左边 left 结束--------------->
  <div class="right">
  <div class="er block">
     <img src="<%=basePath %>web/images_xu/companypic.gif" width="238px" height="130px"/>
  </div> 
  <div class="er block">
      <div class="er_top title_a">
       <font color="#FD7D01" size="2" style="font-weight: bold">
          <a href="<%=basePath %>reading.html">阅览室</a>
       </font> 
      </div>
      <div class="er_list">
        <ul class="list list_b2">
		   <li><a href="<%=basePath %>read/01.html">南充导航</a></li>
		   <li><a href="<%=basePath %>read/02.html">励志故事</a></li>	
		   <li><a href="<%=basePath %>read/03.html">专业技能</a></li>	
		   <li><a href="<%=basePath %>read/04.html">职场生活</a></li>	
		   <li><a href="<%=basePath %>read/05.html">社会形势</a></li>		
       </ul>
      </div>
    </div> 
  <div class="er block">
      <div class="er_top title_a">
       <font color="#FD7D01" size="2" style="font-weight: bold">新加入会员</font> 
      </div>
      <div class="er_list">
        <marquee direction="up" align="left" vspace="3" height="97%" onmousemove="this.stop()" onmouseout="this.start()" scrollamount="3">
        <ul class="list list_b2" style="height: 250px;">
        <c:if test="${!empty memberlist}">
		<c:forEach items="${memberlist}" var="member">
		   <li><a href="<%=basePath%>home/${member.mid }.html" target="_blank">
		   <table>
		    <tr>
		     <td width="300">${member.nickname }</td>
		     <td width="200"><fmt:formatDate value="${member.stime}" pattern="yyyy-MM-dd"/></td>
		    </tr>
		   </table>
		   </a>
		   </li>
		 </c:forEach>
		</c:if>
		<c:if test="${empty memberlist}">
		   <li>
				没有找到相应的记录
		   </li>
		</c:if>				
       </ul>
       </marquee>
      </div>
    </div> 
    <!--二级栏目结束-->
  </div>
    <!-- ------------主体右边 right 结束--------------->
</div>
<!-- ------------主体list_main结束--------------->
<div class="head"><iframe src="<%=basePath%>web/footer.html" width="1000px"  height="100px"  frameborder="0" scrolling="no" ></iframe></div>
</body>
</html>